package com.loan.manager.impl;



import com.loan.dal.entity.InCustomerDO;
import com.loan.dal.mapper.InCustomerMapper;
import com.loan.manager.InCustomerManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Slf4j
@Repository
public class InCustomerManagerImpl implements InCustomerManager {

    @Autowired
    private InCustomerMapper inCustomerMapper;
    @Override
    public Integer addInCustomer(InCustomerDO inCustomer) {

        return inCustomerMapper.insert(inCustomer);
    }

    @Override
    public int modifyInCustomer(InCustomerDO inCustomer) {
        return inCustomerMapper.editById(inCustomer);
    }

    @Override
    public InCustomerDO selectById(Integer userId) {
        return inCustomerMapper.selectById(userId);
    }
}
